package com.freight.user.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class DriverInformationVo {

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "上级老板名字")
    private String superiorName;

    @ApiModelProperty(value = "司机名字")
    private String nickName;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "车牌号码")
    private String vehicleNum;

    @ApiModelProperty(value = "身份证号")
    private String num;

    @ApiModelProperty(value = "生日")
    private String birth;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "发证日期")
    private Date issueDate;

    @ApiModelProperty(value = "驾驶证准驾车型")
    private String driverType;


    @ApiModelProperty(value = "档案编号")
    private String archiveNo;
    @ApiModelProperty(value = "发证机关")
    private String issuingOrganizations;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyyMMdd")
    @DateTimeFormat(pattern = "yyyyMMdd")
    @ApiModelProperty(value = "驾驶证有效期开始时间")
    private Date startDate;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyyMMdd")
    @DateTimeFormat(pattern = "yyyyMMdd")
    @ApiModelProperty(value = "驾驶证有效期时长")
    private Date endDate;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyyMMdd")
    @DateTimeFormat(pattern = "yyyyMMdd")
    @ApiModelProperty(value = "驾驶证 --- 年检日期")
    private Date yearlyInspectionDate;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyyMMdd")
    @DateTimeFormat(pattern = "yyyyMMdd")
    @ApiModelProperty(value = "资格证到期时间")
    private Date workLicenseExpiryTime;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyyMMdd")
    @DateTimeFormat(pattern = "yyyyMMdd")
    @ApiModelProperty(value = "诚信考核有效期")
    private Date sincerityExpiryTime;




    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "从业资格证号")
    private String workLicenseNo;

    @ApiModelProperty(value = "身份证前置照片地址")
    private String idCardFontPicFileId;

    @ApiModelProperty(value = "身份证后置照片地址")
    private String idCardBackPicFileId;

    @ApiModelProperty(value = "驾照证正面地址")
    private Long driverFontPicFileId;

    @ApiModelProperty(value = "驾照证反面地址")
    private Long driverBackPicFileId;

    @ApiModelProperty(value = "从业资格证文件id")
    private Long workLicensePicFileId;

    @ApiModelProperty(value = "从业资格证背面文件id")
    private Long workBackLicensePicFileId;

    @ApiModelProperty(value = "证件状态 0未认证 1已认证 2审核中 3已过期 4已注销")
    private Integer driverUserStatus;

}
